import Router from "@/router/index";
/**
 * 跳转到作者页面  通过作者得用户名
 */
export function goToAuthorPage(authorName){
    Router.push({
        path: '/index/author-info',
        query: {
            authorName: authorName
        }
    }).then(r =>{})
}


/**
 * 跳转到文章读取页面   通过文章id
 */
export function goToQuillReadPage(articleId) {
    Router.push({
        path: '/index/read-text',
        query: {
            articleId: articleId
        }
    }).then(r => {})
}
